#ifndef _TM1668_H_
#define _TM1668_H_

#include <stdint.h>



/*
 *          M_U
 *              R_U
 * L_G/R   [NUM]   R_B/R
 *              R_D
 *          M_D
 *
 * TM_LED_[Left/Right/Middle]_[Green/Blue/Red/Up/Down]
 */

#define TM_LED_L_G (1 << 6)
#define TM_LED_L_R (1 << 7)
#define TM_LED_R_B (1 << 2)
#define TM_LED_R_R (1 << 3)

#define TM_LED_R_U (1 << 5)
#define TM_LED_R_D (1 << 4)
#define TM_LED_M_U (1 << 0)
#define TM_LED_M_D (1 << 1)

extern int8_t tm1668_num;
extern uint8_t tm1668_led;

void tm1668_update(void);
void tm1668_init(void);

#endif
